import request from '@/utils/request'

// 查询消息提醒列表
export function listRemind(query) {
    return request({
        url: '/msg/remind/list',
        method: 'get',
        params: query
    })
}

// 查询消息提醒列表(分页)
export function pageRemind(query) {
    return request({
        url: '/msg/remind/page',
        method: 'get',
        params: query
    })
}

// 查询消息提醒详细
export function getRemind(id) {
    return request({
        url: '/msg/remind/get/' + id,
        method: 'get'
    })
}

// 新增消息提醒
export function addRemind(data) {
    return request({
        url: '/msg/remind/add',
        method: 'post',
        data: data
    })
}

// 修改消息提醒
export function updateRemind(data) {
    return request({
        url: '/msg/remind/edit',
        method: 'post',
        data: data
    })
}

// 删除消息提醒
export function delRemind(id) {
    return request({
        url: '/msg/remind/remove/' + id,
        method: 'post'
    })
}

export function getMsgCount() {
    return request({
        url: '/msg/remind/getMsgCount',
        method: 'get'
    })
}

export function oneHandle(data) {
    return request({
        url: '/msg/remind/oneHandle',
        method: 'post',
        data: data
    })
}
